package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("recite_record")
public class ReciteRecord {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long userId;
    private Integer authorId;
    private Long spendTime;
    private Integer reciteCount;
    private Date createTime;

    public ReciteRecord(Long userId, Integer authorId, Long spendTime, Integer reciteCount) {
        this.userId = userId;
        this.authorId = authorId;
        this.spendTime = spendTime;
        this.reciteCount = reciteCount;
    }
}
